package blazingbubble.network.game.strategy;

import moltencore.network.protocol.StartGameResponse;
import spark.network.protocol.Response;
import spark.network.strategy.IProtocolHandleStrategy;
import spark.network.protocol.Base;
import org.apache.log4j.Logger;
import spark.utility.OutWrapper;

import java.util.Collection;

public class StartGameResponseStrategy implements IProtocolHandleStrategy<StartGameResponse> {
	private Logger logger = Logger.getLogger(StartGameResponseStrategy.class);

	@Override
	public void handle(StartGameResponse packet, OutWrapper<Response> acknowledgement, Collection<Base> additionalData) {
		logger.info("StartGameResponse: accepted " + packet.gameStarting() + "; message " + new String(packet.getMessage()));
	}
}